﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JJY.DBUtility;
using System.Data.SqlClient;
using ET.Utility;
using System.Data;

namespace ET.DbUtility
{
    public class EtSqlHelper : SQLHelper
    {
        public static int ExecuteNonQuery(string sql, params SqlParameter[] param)
        {
            return ExecuteNonQuery(new SqlConnection(ConfigManager.ConnectionString), 
                CommandType.Text, sql, param);
        }

        public static object ExecuteScalar(string sql, params SqlParameter[] param)
        {
            return ExecuteScalar(new SqlConnection(ConfigManager.ConnectionString), 
                CommandType.Text, sql, param);
        }
    }
}
